import request from '@/utils/request'

const URL = 'op/checkIn'

export function checkIn(orderId) {
  return request({
    url: URL + '/in',
    method: 'post',
    data: {
      orderId: orderId
    }
  })
}

export function checkOver(orderId, typeId) {
  return request({
    url: URL + '/over',
    method: 'post',
    data: {
      orderId: orderId,
      typeId: typeId
    }
  })
}

export function checkOut(roomNumber) {
  return request({
    url: URL + '/out',
    method: 'post',
    data: {
      roomNumber: roomNumber
    }
  })
}
